package com.maoslv.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String email;
    private Boolean state;
    private Boolean rememberMe;
    private Date createTime;
    private Date updateTime;
    private Integer infoId;

    private String roleName;
    private List<Role> roleList = new ArrayList<>();
    private Info userInfo;
    private String code;
}
